package bean;

import android.content.pm.PackageInfo;
import android.graphics.drawable.Drawable;

/**
 * Created by Administrator on 2016/7/18.
 */

public class AppInfo{

    private String packageName;     // package name
    private String appName;         // App name
    private int appUid;             // App uid
    private Drawable icon;          // App Icon
    private boolean boost;          // is in boost list
    private boolean advice;         // is advice
    private boolean onBlackList;    // is in black list
    private long flow;              // network traffic
    private int uploadFlag;         // a flag to tag if uploaded to the server
    private boolean boostChanged;   // a flag to tag if boost setting changed
    private String date;

    private PackageInfo packageInfo;

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public int getAppUid() {
        return appUid;
    }

    public void setAppUid(int appUid) {
        this.appUid = appUid;
    }

    public Drawable getIcon() {
        return icon;
    }

    public void setIcon(Drawable icon) {
        this.icon = icon;
    }

    public String toString() {
        return this.getAppName() + "\n\t" + this.getPackageName() + "\t" + this.boost + "\t" + this.flow;
    }

    public boolean isBoost() {
        return boost;
    }

    public void setBoost(boolean boost) {
        this.boost = boost;
    }

    public boolean isAdvice() {
        return advice;
    }

    public void setAdvice(boolean advice) {
        this.advice = advice;
    }

    public boolean isOnBlackList() {
        return onBlackList;
    }

    public void setOnBlackList(boolean onBlackList) {
        this.onBlackList = onBlackList;
    }

    public long getFlow() {
        return flow;
    }

    public void setFlow(long flow) {
        this.flow = flow;
    }

    public PackageInfo getPackageInfo() {
        return packageInfo;
    }

    public void setPackageInfo(PackageInfo packageInfo) {
        this.packageInfo = packageInfo;
    }

    public int getUploadFlag() {
        return uploadFlag;
    }

    public void setUploadFlag(int uploadFlag) {
        this.uploadFlag = uploadFlag;
    }

    public boolean isBoostChanged() {
        return boostChanged;
    }

    public void setBoostChanged(boolean boostChanged) {
        this.boostChanged = boostChanged;
    }


    public void setDate(String date) {
       this.date = date;
    }

    Long oldFlow;
    public void setOldFlow(long oldFlow) {
        this.oldFlow = oldFlow;
    }
}

